package com.kuang.demo.service;

import com.kuang.demo.bean.GoodsBean.GoodsBO.AddGoods;
import com.kuang.demo.bean.GoodsBean.GoodsBO.CatAndBrandBO;
import com.kuang.demo.bean.GoodsBean.GoodsBO.GoodsAddList;
import com.kuang.demo.bean.GoodsBean.GoodsVO.FileUpLoadGoodsPicVO;
import com.kuang.demo.bean.GoodsBean.GoodsVO.GoodsCommetVO;
import com.kuang.demo.bean.GoodsBean.GoodsVO.GoodsDetailVO;
import com.kuang.demo.bean.GoodsBean.GoodsVO.GoodsListVO;
import org.springframework.web.multipart.MultipartFile;

public interface GoodsService {
//    GoodsListVO goodsList(GoodsListVO goodsListVO, long page, int limit, String sort, String order);
//
//    GoodsListVO goodsList(GoodsListVO goodsListVO, int page, int limit, String sort, String order, String goodsSn);

    GoodsListVO goodsList(GoodsListVO goodsListVO, int page, int limit, String sort, String order, String goodsSn, String name);

    CatAndBrandBO catAndBrand(CatAndBrandBO catAndBrandBO);

    void addGoods(GoodsAddList goodsAddList);

    void deleteGoodsList(AddGoods addGoods);


    GoodsDetailVO selectGoodsDetailById(int id);

    void updateGoodsDetail(GoodsDetailVO goodsDetailVO);
//废弃
//    GoodsCommetVO CommentList(int page, int limit, String sort, String order);

    GoodsCommetVO CommentList(int page, int limit, String sort, String order, int userId, int valueId);

    void deleteGoodsCommentById(int id);

    FileUpLoadGoodsPicVO createPic(String url, MultipartFile file);

}
